<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>秒转时间</title>
	</head>
	<body>
		<script>
			var a=prompt("请输入：");
			if (Boolean(a)) {
				if(isNaN(a)){
					alert("输入不合法")
				}else{
                    alert(Math.floor(a/60) + '分' + a%60 +　'秒')
				}
			}else{
				alert("您还未输入")
			}
		</script>
	</body>
</html>
